<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Group
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Invite.php 7244 2010-09-01 01:49:53Z john $
 * @author     John
 */

/**
 * @category   Application_Extensions
 * @package    Group
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Group_Form_Invite extends Engine_Form {
	public function init() {
		$this->setTitle ( 'Invite Members' )->setDescription ( 'Choose the people you want to invite to this group.' )->setAttrib ( 'id', 'group_form_invite' );
		
		$this->addElement ( 'Checkbox', 'all', array ('id' => 'selectall', 'label' => 'Choose All Friends', 'ignore' => true ) );
		
		$this->addElement ( 'MultiCheckbox', 'users', array ('label' => 'Members', 'required' => true, 'allowEmpty' => 'false' ) );
		
		$this->addElement ( 'Button', 'submit', array ('label' => 'Send Invites', 'type' => 'submit', 'ignore' => true, 'decorators' => array ('ViewHelper' ) ) );
		
		$this->addElement ( 'Cancel', 'cancel', array ('label' => 'cancel', 'link' => true, 'prependText' => ' or ', 'onclick' => 'parent.Smoothbox.close();', 'decorators' => array ('ViewHelper' ) ) );
		
		$this->addDisplayGroup ( array ('submit', 'cancel' ), 'buttons' );
	}
}